package com.sanyang.pda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sanyang.pda.bean.ScatteredBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;
import com.wangshen.projectbase.R;

import java.util.List;

public class ScatteredAdapter extends BaseAdapter<ScatteredBean> {
    public ScatteredAdapter(int layoutResId, @Nullable List<ScatteredBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ScatteredBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_articleName,item.getArticleName());
        helper.setText(R.id.tv_amount,item.getActualOutNum()+"");
        helper.setText(R.id.tv_batch,item.getBatchNo());
        helper.setText(R.id.tv_admire_date,item.getExpiringTime());
    }
}
